﻿<Window x:Class="SeleniumRecorder.SetProperties"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Icon="pack://application:,,,/Resources/favicon.ico" 
        Title="Properties" Height="350" Width="500" BorderBrush="Black" BorderThickness="2" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowStyle="None" Background="{DynamicResource WindowBackgroundBrush}">
    <Window.Resources>
        <LinearGradientBrush x:Key="WindowBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
            <GradientStop Color="White" Offset="0.9"/>
            <GradientStop Color="#FF6A85D8" Offset="0.01"/>
            <GradientStop Color="#FF3464C4" Offset="1"/>
            <GradientStop Color="#FF202E7E" Offset="1"/>
        </LinearGradientBrush>
        <Style x:Key="closeButton"  TargetType="Button">
            <Setter Property="VerticalAlignment" Value="Top" />
            <Setter Property="FontFamily" Value="Verdana" />
            <Setter Property="FontSize" Value="9" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Foreground" Value="White" />
            <Setter Property="Cursor" Value="Hand" />
            <Setter Property="Margin" Value="15,7" />
            <Setter Property="Background" Value="{x:Null}" />
        </Style>

    </Window.Resources>
    <Window.Effect>
        <DropShadowEffect Color="Black"  BlurRadius="180"/>
    </Window.Effect>
    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="9*"/>
        </Grid.RowDefinitions>
        <Label Grid.Row="0" HorizontalAlignment="Center"  VerticalAlignment="Center" FontSize="18">Properties</Label>

        <Button x:Name="btnClose"
           Grid.Row="0"  HorizontalAlignment="Right" VerticalAlignment="Top"
            Style="{StaticResource closeButton}"
            ToolTip="Close"
            Click="btnClose_Click_Close"
            Content="Close X" />
        
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>

            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="150"/>
                <ColumnDefinition Width="3*" />
            </Grid.ColumnDefinitions>
            <Label Grid.Row="0" FontSize="16"  Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center">Search Properties :</Label>
            <ComboBox Margin="10,10,10,10" Grid.Row="0" Grid.Column="1" Name="PropCombo" SelectionChanged="PropCombo_SelectionChanged_1">
                <ComboBoxItem >Id</ComboBoxItem>
                <ComboBoxItem>Name</ComboBoxItem>
                <ComboBoxItem>ClassName</ComboBoxItem>
                <ComboBoxItem>TagName</ComboBoxItem>
                <ComboBoxItem>CSSSelector</ComboBoxItem>
                <ComboBoxItem>PartialLinkText</ComboBoxItem>
                <ComboBoxItem>LinkText</ComboBoxItem>
                <ComboBoxItem>XPath</ComboBoxItem>
            </ComboBox>

            <Label Name="CSSComboLabel" Grid.Row="1" Visibility="Collapsed" FontSize="16"  Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center">CSS :</Label>
            <ComboBox Margin="10,10,10,10" SelectionChanged="CSSCombo_SelectionChanged_1" Grid.Row="1" Visibility="Collapsed" Grid.Column="1" Name="CSSCombo">
            </ComboBox>

            <Label Grid.Row="2" FontSize="16"  Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center">Search Value :</Label>
            <TextBox Margin="10,10,10,10" Grid.Row="2" Grid.Column="1" Name="SearchValue"></TextBox>

            <Label Grid.Row="3" FontSize="16"  Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center">Field Name :</Label>
            <TextBox Margin="10,10,10,10" Grid.Row="3" Grid.Column="1" Name="FieldName"></TextBox>

            <Label Grid.Row="4" FontSize="16"  Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center">Parent :</Label>
            <TextBox Margin="10,10,10,10" Grid.Row="4" Grid.Column="1" Name="Parent"></TextBox>
            <Button Grid.Row="5" HorizontalAlignment="Left" Margin="10,10,10,10" Width="50" Grid.Column="2" Click="Button_Click_Save">Save</Button>
            <Button Grid.Row="5" Margin="10,10,10,10" Width="50" Grid.Column="2" Click="Button_Click_Cancel">Cancel</Button>

        </Grid>

    </Grid>
</Window>
